package cn.leaf.cloud.props;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;

/**
 *
 * description: 链路追踪配置
 *
 * @author twinkle leaf
 * @version v1.0.0
 * @since 2021-11-06 18:16:34
 * slogan: There are no two identical leaves in the world.
 *
 */
@Getter
@Setter
@RefreshScope
@ConfigurationProperties("leaf.request")
public class LeafRequestProperties {

    /**
     * 是否开启日志链路追踪
     */
    private Boolean trace = false;

    /**
     * 是否启用获取IP地址
     */
    private Boolean ip = false;

    /**
     * 是否启用增强模式
     */
    private Boolean enhance = false;
}
